package com.cake.dao;

import java.util.List;

import com.cake.dao.base.IBaseDao;
import com.cake.entity.XxOrder;
import com.cake.entity.pojo.OrderPoJo;
import com.cake.entity.vo.OrderDetailVo;
import com.cake.query.OrderQuery;

public interface XxOrderMapper extends IBaseDao<XxOrder> {
    int deleteByPrimaryKey(Long id);

    int insert(XxOrder record);

    int insertSelective(XxOrder record);

    XxOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(XxOrder record);

    int updateByPrimaryKey(XxOrder record);
    /**
     * 条件查询订单
     * @param orderQuery
     * @return
     */
    List<XxOrder> selectOrders(OrderQuery orderQuery);
    /**
     * 通过id查询订单详情
     * @param orderId
     * @return
     */
    OrderPoJo selectOrderByOrderId(Long orderId);
    
    /**
     * 通过id查询订单详情
     * @param orderId
     * @return
     */
    OrderDetailVo findOrderDetail(Long orderId);
}